package com.neuedu.system.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.neuedu.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.neuedu.common.core.domain.BaseEntity;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 帖子对象 posts
 *
 * @author ruoyi
 * @date 2024-12-18
 */
@Schema(description = "帖子对象")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("posts")
public class Posts extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /** 帖子ID */
    @Schema(title = "帖子ID")
    private Long postId;

    /** 帖子标题 */
    @Schema(title = "帖子标题")
    @Excel(name = "帖子标题")
    private String title;

    /** 帖子内容 */
    @Schema(title = "帖子内容")
    @Excel(name = "帖子内容")
    private String content;

    /** 帖子状态 */
    @Schema(title = "帖子状态")
    @Excel(name = "帖子状态")
    private String postsStatus;

    /** 帖子图片URL */
    @Schema(title = "帖子图片URL")
    @Excel(name = "帖子图片URL")
    private String imageUrl;

    /** 帖子发布时间 */
    @Schema(title = "帖子发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "帖子发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 点赞量 */
    @Schema(title = "点赞量")
    @Excel(name = "点赞量")
    private Long likesCount;

    /** 分享量 */
    @Schema(title = "分享量")
    @Excel(name = "分享量")
    private Long sharesCount;

    /** 地点 */
    @Schema(title = "地点")
    @Excel(name = "地点")
    private String location;

    /** 简介 */
    @Schema(title = "简介")
    @Excel(name = "简介")
    private String description;
    /** 评论信息 */
    private List<Comments> commentsList;

}
